package com.lhweb.springsecurity.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * This controller is used to provide functionality for the login page.
 * 
 * @author Mularien
 */
@Controller
public class LoginLogoutController extends BaseController{
	
	@RequestMapping(method=RequestMethod.GET,value="/login.do")
	public void home(@RequestParam(value = "error",required=false) String error,Model model) {
		if(error != null){
			model.addAttribute("error", error);
		}
	}
}
